package com.zthz.douxing.sendmessageservice.handlers

import org.quartz.JobDataMap
import org.quartz.JobDetail
import org.quartz.Trigger

abstract class AbstractMessageHandlerService {

    def quartzScheduler
    def redisKeyGenernateService

    public static String JOBCONTENT_KEY = "jobContent"
    protected  abstract  void handle(JobDataMap jobDataMap)

    protected void addJob(JobDetail jobDetail,Trigger trigger){

        quartzScheduler.scheduleJob(jobDetail,trigger)
    }
}
